//Definitions
//Frame resolution (in Macroblocks [16x16 pixels] )
#ifndef VERTICAL_MACROBLOCKS
#define VERTICAL_MACROBLOCKS 9
#endif

#ifndef HORIZONTAL_MACROBLOCKS
#define HORIZONTAL_MACROBLOCKS 11
#endif

#ifndef NUMBER_OF_MACROBLOCKS
#define NUMBER_OF_MACROBLOCKS VERTICAL_MACROBLOCKS*HORIZONTAL_MACROBLOCKS
#endif

#ifndef NUMBER_OF_BLOCKS
#define NUMBER_OF_BLOCKS 16*NUMBER_OF_MACROBLOCKS
#endif

#ifndef NUMBER_OF_COEFFICIENTS
#define NUMBER_OF_COEFFICIENTS 4*4
#endif

#ifndef UP_LIMIT
#define UP_LIMIT 10
#endif

#ifndef BOTTOM_LIMIT
#define BOTTOM_LIMIT 0-UP_LIMIT
#endif

//Show debug messages
//define DEBUG

//Global Variables
//Flags
int flagGenMacroblocks=1;
int flagShowGenMacroblocks=1;